<template>
  <el-timeline reverse>
    <el-timeline-item
      v-for="(tc, index) in tcList"
      :key="index"
      :timestamp="tc.tcTime">
      <el-row>
        <el-col :span="2">踏查人员：{{tc.memberInfo}}</el-col>
        <el-col :span="2">踏查结果：</el-col>
        <el-col :span="2"><dict-tag :options="dict.type.tc_result" :value="tc.tcResult"/></el-col>
        <el-col :span="24" v-if="tc.imgInDetail">内部图片：</el-col>
        <el-col :span="24" v-if="tc.imgInDetail">
          <el-image v-for="img in tc.imgInDetail" :key="img" :preview-src-list="tc.imgInDetail" :src="img" style="width: 50px;height: 50px;margin: 5px;"/>
        </el-col>
        <el-col :span="24" v-if="tc.imgOutDetail">外部图片：</el-col>
        <el-col :span="24" v-if="tc.imgOutDetail">
          <el-image v-for="img in tc.imgOutDetail" :key="img" :preview-src-list="tc.imgOutDetail" :src="img" style="width: 50px;height: 50px;margin: 5px;"/>
        </el-col>
      </el-row>
    </el-timeline-item>
  </el-timeline>
</template>

<script>

export default {
  name: "tc-timeline",
  dicts: ['tc_result'],
  props: {
    tcList: {
      type: Array,
      default() {
        return []
      },
    }
  },
  data() {
    return {}
  },
}
</script>

<style scoped>

</style>
